package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/** 订单满减活动 ViewHolder */
public class ShoppingCartOrderReduceHolder extends ViewHolder {

    private TextView tvTitle;

    private TextView tvContent;

    @Override
    protected void initView(View rootView) {
        tvTitle = (TextView) rootView.findViewById(R.id.tv_title);
        tvContent = (TextView) rootView.findViewById(R.id.tv_content);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_shopping_cart_reduce;
    }

    public void setTitle(String title) {
        tvTitle.setText(title);
    }

    public void setContent(String content) {
        tvContent.setText(content);
    }
}
